import http from "@/api/http";

const BASE_URL_PATH = "/cms/column";

export default {
  listTree(params) {
    return http.get(`${BASE_URL_PATH}/listTree`, params);
  },
  create(data) {
    return http.post(`${BASE_URL_PATH}`, { data: JSON.stringify(data) });
  },
  update(data) {
    return http.put(`${BASE_URL_PATH}`, { data: JSON.stringify(data) });
  },
  delete(id) {
    return http.delete(`${BASE_URL_PATH}/${id}`);
  },
};
